/**
 * 
 */
package com.moji.cyg.biz.address;

import org.mybatis.spring.support.SqlSessionDaoSupport;

/**
 * @author shengli.caosl 2012-3-9 下午7:21:10
 */
public class AddressDAO extends SqlSessionDaoSupport {

    private static final String NAMESPACE = AddressModel.class.getName();

    public int createAddress(AddressModel addressModel) {
        return getSqlSession().insert(NAMESPACE + ".createAddress", addressModel);
    }

    public int deleteAddress(String addressId) {
        return getSqlSession().delete(NAMESPACE + ".deleteAddress", addressId);
    }

    public int updateAddress(AddressModel addressModel) {
        return getSqlSession().update(NAMESPACE + ".updateAddress", addressModel);
    }
}
